"""
:mod:`pynchon.util.url`
=======================

Using web-resources.
"""

import urllib
import urllib2

def restful(url, params):
    """
    Retrieves a RESTful url via urllib
    """
    params = urllib.urlencode(params)
    params = params.replace('%2B','+')
    data = urllib2.urlopen(url, params).read()
    return data









